
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>


<%@ page import="member.createMNG"%>
<%@ page import="db.nullMNG"%>

<%@ page import="java.util.List"%>
<%@ page import="java.util.ArrayList"%>
<%@ page import="java.util.HashMap"%>

<%
	nullMNG nMng = new nullMNG();
	request.setCharacterEncoding("UTF-8");
	response.setContentType("text/html;charset=UTF-8");

	String userName = request.getParameter("name");
	userName = nMng.nullStr(userName);
	String userID = request.getParameter("userID");
	userID = nMng.nullStr(userID);
	String userPwd = request.getParameter("userPwd");
	userPwd = nMng.nullStr(userPwd);
	String userYear = request.getParameter("birthYear");
	userYear = nMng.nullStr(userYear);
	String userMonth = request.getParameter("where");
	userMonth = nMng.nullStr(userMonth);
	String userDay = request.getParameter("birthDay");
	userDay = nMng.nullStr(userDay);
	String userBirthday = (userYear + "년 " + userMonth + "월 " + userDay + "일");
	String userPhone = request.getParameter("phoneNum01");
	userPhone = nMng.nullStr(userPhone);
	String userMail = request.getParameter("mailAddress");
	userMail = nMng.nullStr(userMail);
	String[] chkbox01 = request.getParameterValues("check01");
	String chkbox01_all = "";
	String[] chkbox02 = request.getParameterValues("check02");
	String chkbox02_all = "";
	String userSex = request.getParameter("sex");
	userSex = nMng.nullStr(userSex);

	if (chkbox01 != null) {
		for (int i = 0; i < chkbox01.length; i++) {
			chkbox01_all = (chkbox01_all + chkbox01[i] + ",");
		}
	}

	if (chkbox01 != null) {
		for (int i = 0; i < chkbox02.length; i++) {
			chkbox02_all = (chkbox02_all + chkbox02[i] + ",");
		}
	}

	createMNG mng = new createMNG();
	mng.createMember(userName, userID, userPwd, userBirthday,
			userPhone, userMail, chkbox01_all, chkbox02_all, userSex);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<%=userID%>(<%=userName%>)님, 환영합니다.

</body>
</html>